package com.zmn.plat.business.interfaces.standard;

import javax.servlet.http.HttpServletResponse;

import com.zmn.common.utils.office.excel.ExportExcel;
import com.zmn.mcc.cas.model.LoginStaff;
import com.zmn.plat.model.entity.standard.record.StandardRecordQuery;
import com.zmn.plat.model.vo.standard.record.StandardRecordExportExcelVO;

/**
 * 描述:标准文库管理列表业务接口
 *
 * @author linfeng
 * @since 16:38 2020/04/28
 **/
public interface StandardRecordBService {

    /**
     * 导出标准文库管理列表
     *
     * @param query
     * @return
     * @author linfeng
     * @since 16:38 2020/04/28
     */
    ExportExcel<StandardRecordExportExcelVO> exportExcel(StandardRecordQuery query, LoginStaff staff);

    /**
     * 根据标准文库ID下载所有附件，压缩为zip
     *
     * @param response
     * @param standardId
     */
    void downLoadFiles(HttpServletResponse response, Integer standardId);

    /**
     * 根据标准文库ID下载单个附件
     *
     * @param response
     * @param url
     */
    void downLoadFile(HttpServletResponse response, String url);

    /**
     * 根据标准文库ID下载附件个数
     *
     * @param standardId
     */
    Integer countFiles(Integer standardId);
}